<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>左边定宽右边自适应</title>
    <style type="text/css">
        /*  html body */
        html,body{
            height:100%;
        }

        /* 默认 会有 上下左右的边距 */
        .box{
            display: table;
            width: 100%;
            height: 100%;
        }

        .left{
            width: 200px;
            background: #ccc;
            display: table-cell;
        }

        .right{
            border: 1px solid #c20;
            display: table-cell;
        }


    </style>
</head>
<body>
    <div class="box">
        <div class="left">左边固定的div</div>
        <div class="right">右边可以弹性变化的div</div>
    </div>
</body>
</html>